<%@ page language="java"
	import="java.util.*,entitybean.oc_news.EntityBeanOc_News;"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<EntityBeanOc_News> list_news = (List<EntityBeanOc_News>) request
			.getAttribute("list_news");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<SCRIPT type=text/javascript src="js/jquery.js"></SCRIPT>
<SCRIPT type=text/javascript charset=utf-8 src="js/lrscroll.js"></SCRIPT>
</head>

	<body>
    
	<div class="content">
			<div class="newbox">
				<div class="new_title">
					<h2>
						新闻中心
					</h2>
				</div>
				<div class="new">
					<ul>
						<%
							for (int i = 0; i < list_news.size(); i++) {
						%>
						<li>
							<a href="<%=request.getContextPath()%>/show_news_detail.do?method=show_news_detail&id=<%=list_news.get(i).getId() %>" target="_blank"><%=list_news.get(i).getNews_title()%></a>
						</li>
						<%
							}
						%>
					</ul>
				</div>
				<div class="more">
					<a target="_blank" href="<%=request.getContextPath()%>/show_news_list.do?method=show_news_list">更多...</a>
				</div>
			</div>
			</div>
	</body>
</html>
